package com.gljx.web.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.gljx.web.Entity.Positiongrade;
import org.springframework.stereotype.Component;

@Component
public interface PositiongradeMapper {
    int deleteByPrimaryKey(String fid);

    int insert(Positiongrade record);

    int insertSelective(Positiongrade record);

    Positiongrade selectByPrimaryKey(String fid);

    int updateByPrimaryKeySelective(Positiongrade record);

    int updateByPrimaryKey(Positiongrade record);

    /**
     * 根据当前人的fid职级职等信息
     * @param fcompanyid
     * @return
     */
    List<Positiongrade> selectPosttiongradeList(@Param("fid")String fcompanyid);

    /**
     * 根据名称查询职级职等信息
     * @param map
     * @return
     */
    List<Positiongrade> selectPositiongradeByFname(Map<String, String> map);

    /**
     * 查找最大编码
     * @return
     */
    String selectFnumber(String companyId);

    List<Positiongrade> selectZjzdByCompanyId(String companyId);

    List<Positiongrade> selectZjzdByCompanyIdAndFnameL2(Map<String, String>map);
}